/*
 * 接收APP发送过来的数据
 */
package functions.app;

import com.google.gson.Gson;
import db.op.app.AppReportOP;
import java.util.HashMap;
import java.util.Map;
import route.AbsFunction;

/**
 *
 * @author meluo
 * @version 2016/2/3
 */
public class AppReport extends AbsFunction{
    
    
    @Override
    public String execute() {
        Map <String,Object>map=new HashMap<>();
       AppReportOP appreop=new AppReportOP(this);
      if(appreop.op()){
         map.put("status", 0);
         map.put("message","汇报成功");
      }else{
           map.put("status",1);
           map.put("message","汇报失败");
      }
      Gson gson=new Gson();
      String ret= gson.toJson(map);
      appreop.onDestroy();
        return ret;
    }

}
